package com.yymx.toback.dto.sms.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * cdowd_user_sms(用户短信表)
 * </p>
 *
 * @author zcg
 * @since 2019-03-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_user_sms")
public class UserSms extends Model<UserSms> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 手机
     */
    private String phone;

    /**
     * 短信标题
     */
    private String title;

    /**
     * 短信内容
     */
    private String content;

    /**
     * 短信状态
     */
    private String status;

    /**
     * 短信业务类型 1: 注册 2：登录 7.找回密码
     */
    private String type;

    /**
     * 请求ip
     */
    @TableField("request_ip")
    private String requestIp;

    /**
     * 短信类型
     */
    @TableField("sms_type")
    private String smsType;

    /**
     * 供应商
     */
    private String supplier;

    /**
     * create_time
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * update_time
     */
    @TableField("update_time")
    private Date updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }


}
